define(['app'], function(app) {
    'use strict';
    //实例化方法
    var factory = function (Http) {
      
		//返回信息
		return {
			//新品测试==商品详情
			product_detail: function(goods_id,act_id,callback) {
				Http.post({
					method: 'goods.test.getgoodsdetail',
					act_id:act_id,
					goods_id:goods_id
				}, function(result) {
					//请求成功
					if(callback) {
						callback(result);
					}
				}, function(e) {
					//请求异常
				}, function() {
				
				});
			}
			
			
		};
	}
	factory.$inject = ['Http'];
	return app.registerService("Newpropromotions_goods", factory);
});